package com.atguigu.tx;

import org.aspectj.lang.annotation.Aspect;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;

import java.util.Date;

/**
 * @Author:zwy
 * @Despriction:
 * @Date:Create in 17:37 2018/7/10
 * @Modify By:
 */
@Repository
public class UserDao {
    @Autowired
    private JdbcTemplate jdbcTemplate;
    public void insert(){
        String sql = "insert into test(name,time) values(?,?)";
        jdbcTemplate.update(sql,"xiaom",new Date());
    }
}
